package com.adcc.ags.msgStore;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.dropwizard.Configuration;

import javax.validation.constraints.NotNull;

/**
 * 应用配置类
 */
public class AppConfiguration extends Configuration{
    // 下行配置工厂
    @NotNull
    private MQConnectionFactory mqConnectionFactory;

    private DBConnectionFactory dbConnectionFactory;

    private String proxy;

    @JsonProperty("mq")
    public MQConnectionFactory getMqConnectionFactory() {
        return mqConnectionFactory;
    }

    @JsonProperty("mq")
    public void setMqConnectionFactory(MQConnectionFactory mqConnectionFactory) {
        this.mqConnectionFactory = mqConnectionFactory;
    }

    @JsonProperty("db")
    public DBConnectionFactory getDbConnectionFactory() {
        return dbConnectionFactory;
    }

    @JsonProperty("db")
    public void setDbConnectionFactory(DBConnectionFactory dbConnectionFactory) {
        this.dbConnectionFactory = dbConnectionFactory;
    }

    @JsonProperty("proxy")
    public String getProxy() {
        return proxy;
    }

    @JsonProperty("proxy")
    public void setProxy(String proxy) {
        this.proxy = proxy;
    }
}
